<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic DataGrid - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2>Basic DataGrid</h2>
	<p>The DataGrid is created from markup, no JavaScript code needed.</p>
	<div style="margin:20px 0;"></div>

	<table id="tb"></table>

	<script>
		$(function () {
			$('#tb').datagrid({
				url: 'datagrip_data1.json',
				method: 'get',
				rownumbers: true,
				columns:[[
					{field:'itemid',title:'Item ID',rowspan:2,width:80,sortable:true},
					{field:'productid',title:'Product ID',rowspan:2,width:80,sortable:true},
					{field: 'attr1', title:'Item Details', width: 80, sortable: true}
				]]
			})
		})
	</script>

</body>
</html>
